A complex WKB method for adiabatic problems