Energetics and electronic structure of encapsulated graphene nanoribbons in carbon nanotube.