Effect of 'free-electron' terms on the g-factor of some semiconductors and semimetals