Matter Spin Networks and Gauge Invariance at Planck Scales