Rationality theorems for curvature invariants of 2-complexes