Asian shares gain after tech boosts US stocks