Influence of the radial profile of the electric potential on the confinement of a high-β two-component plasma in a gas-dynamic trap