Analysis on Wireless Energy Transfer Based on Magnetic Resonances