to apply capital and income to or for the relief of the poor and needy or for other charitable purposes