Dynamo-based scheme for forecasting the magnitude of solar activity cycles