Tin oxide precursor chemistry and its link to coating properties