Mechanism of hydrotalcite regeneration