Dollar rises on U.S. interest rate hike optimism