MSE/PSNR as function.m