The leaning minaret of Mosul in northern Iraq has been restored using its original brickwork, years after it was reduced to rubble under Islamic State group rule.