Analytical solution of discontinuous heat extraction for sustainability and recovery aspects of borehole heat exchangers