Mechanics of film formation during the spray pyrolysis of tin oxide