Power electronics A first course simulations and laboratory implementations