Time reversal optimization for underwater communications