Operation and Control of Microgrids using IoT (Internet of Things)