Thermal radiation of Er doped dielectric crystals: Probing the range of applicability of the Kirchhoff’s law