Collision resolution in multiple access networks with physical-layer network coding and distributed fountain coding