A strategy for the optimal control logic of heat pump systems: impact on the energy consumptions of a residential building