Anderson lifts D-backs to 4-2 win over Rockies