Extensive band gap tunability in covalent organic frameworks via metal intercalation and high pressure