Chemical tailoring of hybrid sol-gel thick coatings as hosting matrix for functional patterned microstructures