An analytical solution for modeling thermal energy transfer in a confined aquifer system