Transition from core–shell to Janus chemical configuration for bimetallic nanoparticles