Economic assessment of flexibility offered by an optimally controlled hybrid heat pump generator: a case study for residential building