Phillies trade Cole Hamels to Rangers