First-principles calculations on the atomic and electronic structure of kappa-Al2O3