Mechanism of ion adsorption to aqueous interfaces: Graphene/water vs. air/water