Ion exchange and dehydration of layered [sodium and potassium] titanates, Na2Ti3O7 and K2Ti4O9