Measuring the degree of sexual segregation in group‐living animals