Gant homers, pitches Cardinals to 6-4 win over Nationals