On the Geometry of Discrete Exponential Families with Application to Exponential Random Graph Models