A nonlocal variational formulation of the equations of radiative transport