Multichannel time-of-flight technique for plasma potential profile measurements by heavy ion beam diagnostic on the tokamak ISTTOK