Synthesis and Optimal Operation of Smart Microgrids Serving a Cluster of Buildings in a Campus with Centralized and Distributed Hybrid Renewable Energy Systems