Pulse shaping and passive mode-locking with a nonlinear Michelson interferometer