Financial Risk Forecasting: The Theory and Practice of Forecasting Market Risk with Implementation in R and Matlab