Power Maximization for a Multiport Network Described by the Admittance Matrix