On what factors the magnitude of magnetic field due to current carrying solenoid depends?