Why solenoid are used to magnetise a piece of magnetic materials, like soft iron, when placed inside the coil?