Integration of a Microgrid Energy Management System in a Building Management System