Measuring egocentric networks