Microgrid Design and Operation-Toward Smart Energy in Cities