Text this: Green's function approach to interacting lattice polaritons and optical nonlinearities in subwavelength arrays of quantum emitters