4.0 magnitude earthquake hits southeast Massachusetts