Discriminative Structure Learning of Arithmetic Circuits