Core-level attosecond transient absorption spectroscopy of laser-dressed solid films of Si and Zr