Metaoptics for aberration correction in microendoscopy