Optimized 3d lighting environment estimation for image forgery detection