Energy self-sufficient public buildings