Factors affecting electromagnet strength