A spectral model for heat transfer with friction heat gain in geothermal borehole heat exchangers