Intermediate states in the calculation of the neutron electric dipole moment