Defining spatially-varying dielectric structures