Magnitude 6.1 earthquake shakes northern Taiwan