Integration of Microgeneration and Related Technologies in Buildings