Memory effect in an ionic liquid matrix containing single-walled carbon nanotubes and polystyrene