Alkali-stable positive resist obtained after treatment with HMDS