Smart tailoring of the surface chemistry in GPTMS hybrid organic-inorganic films