Modelling Of Speculative Bubbles And Forecasting Of Market Crashes