Study of the effect of magnetic field on solid state devices and its application for the measurement of some basic quantities in electrical engineering