3D printing of soft hydrogels incorporating functional nanomaterials