Random Access with Physical-layer Network Coding