Hard-phase engineering in hard/soft nanocomposite magnets