From FePt–Fe3O4 to L10-FePt–Fe nanocomposite magnets with a gradient interface