Numerical modeling of the influence of heat exchange of reservoir beds with enclosing rocks on gas production from a single well