Church seeks what is best for those who are wounded in marriage, pope says