Technical design of the phase I Mu3e experiment