A highly efficient measure of mass segregation in star clusters