Wireless Power Transfer With Three-Ports Networks: Optimal Analytical Solutions