Hindcast and forecast of grand solar minina and maxima using a three-frequency dynamo model based on Jupiter–Saturn tidal frequencies modulating the 11-year sunspot cycle