Ensemble and single molecules fluorescence studies of polymers