Discrete Flavor Symmetries in D-brane models