Density-functional theory study of gramicidin A ion channel geometry and electronic properties