Quantum Hamilton-Jacobi study of wave-functions and energy spectrum of solvable and quasi-exactly solvable models