Effect of laser deflection on resonant cantilever sensors