Geometric approach to the semiclassical bound‐state energies of quantum‐mechanical models