Naval coilgun