Homotopy completion and topological Quillen homology of structured ring spectra