A set of tools for measuring spatial segregation