Magnetic properties in terms of localized quantities. 5. Carbocations