Advanced Convex Relaxations for Nonconvex Stochastic Programs and AC Optimal Power Flow