Computational elastic rod theory captures DNA and protein flexibility in the Lac-repressor complex