Ex-IRS agent sentenced for taking bribe