First principles calculations of solid–solid interfaces: an application to conversion materials for lithium-ion batteries