Energy Management Research Using Emulators of Renewable Generation and Loads