Multilayer reflectivity calculations applied to the Energy Dispersive Method