Structure and water uptake in BaLnCoO (Ln =La, Pr, Nd, Sm, Gd, Tb and Dy)