Evolution of monogamy in animals