The Loan Structure and Housing Tenure Decisions in an Equilibrium Model of Mortgage Choice