Primordial black hole dark matter and LIGO/Virgo merger rate from inflation with running spectral indices: formation in the matter- and/or radiation-dominated universe