Molecular-scale insights into surface-induced cobalt precipitation on palygorskite: roles of pH, metal concentration, and mineral template