Near optimal configurations in mean field disordered systems