The design and construction of the MICE Electron-Muon Ranger