Sol-gel derived thiol-functionalized oligosilsesquioxanes: influence of synthesis