Processing And Switching Mechanisms Of Materials For Memory Devices In Flexible Electronics