Critical behaviour in spin reorientation phase transitions (ErxRE1−x)2Fe14B (RE = Nd, Dy) magnets