After TSMC announced record profits for the second quarter that exceeded expectations, its U.S.-listed stock rose by 2.2%