Stochastic medium access control for underwater acoustic sensor networks