The binary and ternary fission of thorium, lead and platinum induced by 12.2 GeV protons