Automatic Identification of Embedded Structure in Large-Scale Optimization Models