Structure of TMxSn1−x amorphous alloys and phase separation in the amorphous state