Boomers who remarry learn from failed relationships