Direct solution of the equation of transfer using frequency- and angle-averaged photon escape probabilities, with application to a multistage, multilevel aluminum plasma