The absolute determination of a particle-gamma angular correlation function, with application to stripping reactions