Protonation and deprotonation of edges in graphene oxide and MXenes as a driving force for actuation in responsive 2D membranes