Mechanistic failure criteria for carbon and glass fibers embedded in polymer matrices