Micro-sources design of an intelligent building integrated with micro-grid