An adaptive approach for uniform scanning in multifocal multiphoton microscopy with a spatial light modulator