Rotational excitation (J = 0 → J = 2) of polar molecules in the sudden approximation