Essays on the economics of aging and housing