Designing automatically a representation for grammatical evolution