Ultraviolet laser induced ionization of molecules near surfaces