Behavior of molecules and molecular ions near a field emitter