Do investments in flexibility enhance sustainability? A simulative study considering the German electricity sector