Mauritania president replaces top military brass