Taiwan stocks gain over 2%