Influence of in-plane Stone–Thrower–Wales defects and edge functionalisation on the adsorption of CO2 and H2O on graphene