A simple approach to analyze layer-dependent optical properties of few-layer transition metal dichalcogenide thin films