A dynamic model of gene regulatory networks based on inertia principle