Machine-learning based determination of the stacking order of bilayer graphene