Measurement of the internal magnetic field in the correlated iridates Ca4IrO6, Ca5Ir3O12, Sr3Ir2O7and Sr2IrO4