Validity of Kirchhoff's law for semitransparent films made of anisotropic materials