Using geomagnetic indices to forecast the next sunspot maximum