Modelling protein conformation by cellular automata