The strongest earthquake to hit Taiwan in 25 years killed at least 10 people and damaged dozens of buildings, but the destruction was largely contained thanks to decades of preparatory work.