A mathematical approach to computing structural-failure boundaries