Electromagnetics in Renewable Energy Generation