Giants rout Phillies 13-1, snap seven-game losing streak