Power profile generator for the test of microgrid measurement and control systems