The Complex WKB Method for Nonlinear Equations I: Linear Theory