I finally found the answer to my own question. Since it is fairly complicated, I'm not going to give the full resolution here, though if I ever publish the results, I'll try to remember to add a link from this thread to the publication. Alternatively, feel free to message me if you need more...