Crystallization in Two Dimensions and a Discrete Gauss–Bonnet Theorem