Probing atomic distributions in mono- and bimetallic nanoparticles by supervised machine learning