Stochastic quantization of linearized gravitational theories