Significance of Armature Resistivity and Deformation in Modeling Coilgun Performance