A new sub-grid surface mass balance and flux model for continental-scale ice sheet modelling: testing and last glacial cycle