The Perils of Look-Ahead Bias in Backtesting and How to Avoid It