A combinatorial characterization of 3-manifold crystallizations