Pion chemical potentials in heavy-ion collisions: relativistic quantum molecular dynamic analysis