The coercive field of sintered and melt-spun NdFeB magnets