Electron beam and X-ray resists