Principles of Adaptive Optics