Diagnosing variable camshaft timing systems