Anomalous impurity effect on magnetization in frustrated one-dimensional ferro- and ferrimagnets