Solvent mediated self-assembly of solids