An eco-evo-devo genetic network model of stress response