Probing nuclear bubble configuration by the π − /π + ratio in heavy-ion collisions