Theoretical and experimental studies on the electronic structure of crystalline and amorphous ZnSnO3 thin films