Light coupling in polymer nanofibers: from single-photon emission to random lasing