Structure and energetics of SiO2 polymorphs by quantum-mechanical and semiclassical approaches