How charities make money from lotteries