The local rules dynamics model for self-assembly simulation