Quenching of molecular fluorescence near the surface of a semiconductor