Antiferromagnetic fluctuations and d-wave superconductivity in electron-doped high-temperature superconductors