A Novel Mechanical Hardware in the Loop Platform for Distributed Generation Systems