A conic primitive-based pattern generator for electron-beam lithography of diffractive optical elements