Rule-based lattice computer models for simulating dendritic growth