The expected adjacency and modularity matrices in the degree corrected stochastic block model