Cooper-minimum effects in the photoionization cross sections of 4d and 5d electrons in solid compounds