The impact of zoning and building restrictions on housing affordability