Upstream shocks and interplanetary magnetic cloud speed and expansion: Sun, WIND, and Earth observations