A Channel-Aware Adaptive Modem for Underwater Acoustic Communications