The use of electronic components in railgun projectiles