Resolving power of pixel detector Timepix for wide-range electron, proton and ion detection