The critical phase for random graphs with a given degree sequence