An adaptive excitation source for high-speed multiphoton microscopy