Giants hit 3 solo homers in 5-1 win over Rockies