3.4-magnitude earthquake shakes parts of upstate NY