How evolution influences marriage customs