MLPF: Efficient machine-learned particle-flow reconstruction using graph neural networks