Compensation of scintillation with a phase-only adaptive optic