A sum-over-paths approach to one-dimensional time-independent quantum systems