Fragment to framework: automatic fragmentation of covalent organic frameworks into building blocks for band gap analysis.