Analysis of solar, interplanetary, and geomagnetic parameters during solar cycles 22, 23, and 24