The Araucaria Project: An Accurate Distance to the Local Group Galaxy NGC 6822 from Near-Infrared Photometry of Cepheid Variables