Thermal radiative energy transfer in polaritonic nanostructure arrays