Topological representations of crystalline compounds for the machine-learning prediction of materials properties