Electronic structure of metallocenes