Augmented nested sampling for stochastic programs with recourse and endogenous uncertainty