Algerian president replaces top military officials