Text this: Mitigation of distortions in radio-over-fiber systems using machine learning