Inferring social structure from digital trace data : applications to organizations and markets