Turkey reinstates 1,823 civil servants linked to app used by coup plotters