Quenching and enhancement of single-molecule fluorescence under metallic and dielectric tips