Resonant state expansion for non-relativistic quantum mechanics in one dimension