Modelling of extremal earthquakes