PhD Thesis: Bayesian latent Gaussian models