Energy-efficient electrical systems for buildings