Mechanisms and micro-evolutionary consequences of social homogamy in a nineteenth-century Italian community