A magnitude 4.0 earthquake shakes southern New England Massachusetts