Near-zero-energy end states in topologically trivial spin-orbit coupled superconducting nanowires with a smooth confinement