Generating monotone quantities for the heat equation