Superpotential method for chiral cosmological models connected with modified gravity