The measurement of a single-mode thermal field with a microwave cavity parametric amplifier