Dynamic stochastic general equilibrium models and their applications : doctoral dissertation