Effects of the shape of elongated magnetic particles on the coercive field