The formation of the complex manganites LnSr(2)Mn(2)O(7) (Ln = La, Nd, Gd)