Quantifying Reflexivity in Financial Markets: Towards a Prediction of Flash Crashes