A Variational Inference Approach to Inverse Problems with Gamma Hyperpriors