Different working mechanisms for a graphene resistive memory based on oxygen-ion transport