Solubility of solids and liquids in supercritical gases