Analysis of thermodynamic losses in ground source heat pumps and their influence on overall system performance