Link adaptation and equalization for underwater acoustic communication using machine learning