A comprehensive investigation of MoO3 based resistive random access memory