Solving the electronic Schrödinger equation for multiple nuclear geometries with weight-sharing deep neural networks