Physics prospects with the second oscillation maximum at the Deep Underground Neutrino Experiment