Ab initio analysis of pentadienyllithium, pentadienylsodium, and the pentadienyl ions