Turkey discharges over 800 military personnel