DWBA in the shell-model approach to nuclear reactions