Multicontrast nonlinear optical microscopy with a compact and rapid pulse shaper