Design, construction, and performance of the electromagnetic module of the DØ end calorimeter