Conditions for realization of an optimum regime of the electric explosion of conductors in liquid media