On the WKB approximation to direct heavy-ion reactions