Three essays on the impact of public investments and microfinance on development in Tanzania