SMS dit: Understanding the geometric diversity of inorganic and hybrid frameworks through structural coarse-graining