Pošalji zapis e-poštom: Theory of tailorable optical response of two-dimensional arrays of plasmonic nanoparticles at dielectric interfaces