Free-energy model for nanoparticle self-assembly by liquid crystal sorting - Meru Sandbox