Powerful quake hits near Taiwan's second city