Nature of heterointerfaces in GaAs/InAs and InAs/GaAs axial nanowire heterostructures