WKB energy quantization and first-order perturbation theory