Failure modes of electrospun nanofibers