Cubs exercise option on Hamels, trade Smyly to Texas