Coupled-channels calculations for transfer reactions