Theory of the polarization of highly-charged ions in storage rings: production, preservation and application to the search for the violation of the fundamental symmetries…