A new mechanism for mineralizing systems based on cnoidal wave instabilities