Modeling and control of building-integrated microgrids for optimal energy management – A review