Mechanical and thermal properties of hybrid nanocomposites prepared by in situ polymerization