One- and two-dimensional quantum lattice algorithms for Maxwell equations in inhomogeneous scalar dielectric media I: theory. Issue 1 (1st February 2021)