How Ambient Intelligence will Improve Habitability and Energy Efficiency in Buildings