Text this: Investigation of solution-processed tungsten disulfide as switching layer in flexible resistive memory devices for performance and stability