Sale of clean-energy credits: Traps for the unwary