Data-Driven And Mechanistic Modeling For The Optogenetic Control Of Microbial Consortia