Bose-Einstein and Fermi-Dirac distributions in nonextensive Tsallis statistics: an exact study