The court may grant a divorce in favor of either spouse if the spouses have lived apart without cohabitation for at least three years.