Method and apparatus for channel encoding and decoding in communication or broadcasting system