Electromagnetic and Thermal Analysis of Muzzle-fed Railguns