Essays in gender, earnings, and geography