Calculation of remanence and degree of texture from EBSD orientation histograms and XRD rocking curves in Nd–Fe–B sintered magnets