Elasticity of axial nanowire heterostructures with sharp and diffuse interfaces. (February 2020)