McClanahan strikes out 10, Rays beat Pirates 4-2 for sweep