Investigating the Q Factor and Efficiency for Lossy Antennas Using Convex Optimization