Semiclassical quantization with a quantum adiabatic phase