Methane and ammonia in the near-infrared spectra of late-T dwarfs