Combined Control and Power Hardware in-the-Loop Aimulation for Testing Smart Grid Control Algorithms