Mixed-integer optimisation of graph neural networks for computer-aided molecular design