Essays on urban economics and income inequality