Compactness evaluation of amorphous and nanocrystaline thin films by FT-IR reflection-absorption spectroscopy