I have since developed this stand-alone script.
Please study the instructions in the script carefully. If you decide to use it, take a backup of your site first.
The script will migrate balances only, not transactions. There is currently no way to migrate transactions quickly. If you have any questions, please let me know.