Smarter buildings tackle health and energy