Spherical aberration correction in nonlinear microscopy and optical ablation using a transparent deformable membrane