Design and status of the Mu2e electromagnetic calorimeter