Coherent-mode decomposition of partially polarized, partially coherent sources