From elementary signed circuits to the dynamics of Boolean regulatory networks