Electromagnetic effects during relaxation processes in the Earth’s inhomogeneous crust