The shell-model theory of nuclear rotational states