The electronic structure of carbonium ions