A £1.7m investment by the Scottish Government is being used to extend platforms at eight stations on the West Highland Line.