Nonreciprocal localization of light in magnetoactive cholesteric liquid crystals in an external magnetic field