On the adiabatic invariance method of calculating semiclassical eigenvalues