Endometriosis and spontaneous abortion