Text this: Interfacial mechanism for efficient resistive switching in Ruddlesden-Popper perovskites for non-volatile memories