Gravar-mail: Physical and chemical mechanisms in oxide-based resistance random access memory