Signal-generating self-assembling processes promoted by metal ions