The chemical abundances in a sample of dwarf irregular galaxies I. Small scale variations within NGC 6822