A novel concept for the preparation of alloy nanowires