Nagging, giving unsolicited advice, and “ecopiety” are out. But there are better ways to get people to adopt green habits.