A spin rotator for producing a longitudinally polarized electron beam with MAMI