Why does a current-carrying freely suspended solenoid rest along a particular direction? State the direction in which it rests.