Taiwan shares extend gains as tech sector steams ahead