Partially coherent beams and a generalized ABCD-law