Ordered photonic nanojet arrays for luminescent optical sensing in liquid and gaseous media