Performance of ad hoc wireless networks with Aloha and PR-CSMA MAC protocols