Towards reducing electricity costs in an energy community equipped with home energy management systems and a local energy controller