Structural Phase Transition Effect on Resistive Switching Behavior of MoS2 -Polyvinylpyrrolidone Nanocomposites Films for Flexible Memory Devices.