Iranian government says 3,117, mostly civilians, killed in unrest