Hundley has 4 hits as Padres beat Giants 5-3