Krein–Adler transformations for shape-invariant potentials and pseudo virtual states