Positive resist for UV and X-ray lithography synthesized through sol–gel chemistry