Optical characterization of a two-dimensional BODIPY-based polymer material and its related chromophores