Efficient cogeneration and district heating systems in bioenergy villages: an optimization approach. (1st October 2015)