Validation of the ECART code for the safety analysis of fusion reactors