Add averaged switch models to Electrical
Add averaged switch models to Electrical

This commits adds CCM and DCM averaged switch models. DCM has not
totally been tested. It also includes an averaged version of the
1-phase inverter, built from the CCM variant. Additionally, some
code cleaning/formating has been done to this file.

raulrpearson/PVSystems