An energy-aware, agent-based maintenance-management framework for improving the satisfaction of occupants