Degree of polarization as a measurable quantity for a quantum optical field containing variously polarized photons