A Two-Step Approach toward Model-Free X-Ray Fluorescence Analysis of Layered Materials