Jealousy in friendships isn’t always a bad thing, according to new research