Quantum theory of a double-well potential: energy levels for symmetric and nonsymmetric double-well potentials in a three-dimensional system