Generating functions for intersection numbers on moduli spaces of curves