determine the factors the affect the strength of an electromagnet