A unifying framework for flexible excess hazard modelling with applications in cancer epidemiology