Genus-2 generating functions for semisimple cohomological field theory