Regularization parameters for the self force in Schwarzschild spacetime: II. gravitational and electromagnetic cases