3.7 magnitude earthquake rattles San Francisco