Relation between the Gelfand―Levitan procedure and the method of supersymmetric partners