Packet-centric approach to distributed sparse-graph coding in wireless ad hoc networks