The Radial Variation of Interplanetary Shocks in the Inner Heliosphere: Observations by Helios, MESSENGER, and STEREO