Gravitational energy

Added functions for tabulating and saving energy parameters for a model of a growing core, and then fitting these to functions of the temperature at the inner core boundary.