Isomer ratios for products of photonuclear reactions with middle-weight nuclei