Fluorescence polarization in a planar array of pigment molecules: theoretical treatment and application to flavins