Physical pooling functions in graph neural networks for molecular property prediction