Dynamic Modelling and Control System Optimization of a Reversible Air-to-Water Heat Pump with Heat Recovery for Domestic Hot Water Production