Divorce often requires one spouse to refinance the mortgage to remove the other from the loan. Here's how the process works and what to expect.