Earthquake of magnitude 7.4 shakes Taiwan