Universal adaptive optics for microscopy through embedded neural network control