Electron beam lithography on curved or tilted surfaces