Adaptive Optics For Microscopy And Photonic Engineering