Ab initio calculations of structural and electronic properties of 6H-SiC(0001) surfaces