Development of a Nb3Sn Superconducting Undulator for the Advanced Photon Source