A Local Switch Markov Chain on Given Degree Graphs with Application in Connectivity of Peer-to-Peer Networks