A possible mechanism for the influence of geomagnetic field on the evolution of life