Local Gradient Theory for Dielectrics: Fundamentals and Applications