Bose–Einstein condensation in a one-dimensional system due to an attractive-δ impurity center