Renormalization of a classical gravitational field interacting with quantized matter fields