Co-operative anion exchange mechanism of layered transition metal hydroxide systems