Organometal tri-halide perovskite resistive switching device with PMMA electrode interlayer