Zonal Energy Management and Optimization System (ZEMOS) for Smart Grid Applications