The self-consistent electronic structure of trigonal selenium