Solution of time-independent Schrödinger equation by the imaginary time propagation method