Inverse design of pore wall chemistry and topology through active learning of surface group interactions | Synapse