Localized defects in a one-dimensional Ginzburg-Landau model