Smart, tax-efficient ways to give back through foundations, donor-advised funds, and trusts.