Modeling of natural gas hydrates formation during joint operation of a reservoir and a gas well