Demographics, human capital, and the demand for housing