Covariant quantization of the gravitational field