Synthesis of colloidal inorganic nanomaterials and their interactions with soft matter