A hierarchy of potential energy surfaces constructed from energies and energy derivatives calculated on grids