Understanding the desulphurization process in an ionic porous aromatic framework