calculating ductility from stress strain curve