Strong electronic correlations in iron pnictides: Comparison of the optical spectra for BaFe$_{2}$As$_{2}$-related compounds