Cardinals persevere with Molina, Carpenter home runs for win over Pirates