Lamellar reaction phenomena: from intercalation to nanomaterials formation