Elasticity of Axial Nanowire Heterostructures with Sharp and Diffuse Interfaces