Prediction of crack propagation and fracture in residually stressed glass as a function of the stress profile and flaw size distribution