An experiment to search for an electric dipole moment in the 3P2 metastable state of xenon