Controlling the chemistry of the micropore volume in pillared clays and micas