Headley, Latos lead Padres over Cardinals