Hardware-in-the-loop Testing of Wind Turbine Nacelles for Electrical Certification on a Dynamometer Test Rig