Excitation of KdV magnetosonic solitons in plasma in the presence of an external magnetic field