Nonadiabatic phonons within the doped graphene layers of XC6 compounds