Charged pion condensation in dense quark matter: Nambu--Jona-Lasinio model study