Core–periphery structure in directed networks