On solutions of the Schrödinger equation for some molecular potentials: wave function ansatz