The interpolation method for random graphs with prescribed degrees