Approximate analytic solution for electronic wave functions and energies in coupled quantum wells