Mortgage contracts in a general equilibrium model when there are inflation shocks