Analysis and Experimental Testing of a New Type of Variable Stiffness Magnetic Spring with a Linear Stroke Length