Hybrid porous resist with sensing functionality