Cavity field tomography via atomic beam deflection