Data and code for optimization of bond valence parameters in metalorganics