Competition of Brazil nut effect, buoyancy, and inelasticity induced segregation in a granular mixture