Divorce can have unintended tax consequences