Cross sections for direct and dissociative ionization of NH3 and CS2 by electron impact