Solving nuclear structure problems with the adaptive variational quantum algorithm