Electronic structure of sol-gel derived SnO2 thin films