MATLAB codes for An Efficient Bayesian Framework for Uncertainty Quantification in Nonlinear Imaging Inverse Problems