what factors determine the strength of electric and magnetic forces?