3.9-magnitude earthquake shakes west Quebec