Quantum Decoherence Of Near-Surface Nitrogen-Vacancy Centers In Diamond And Implications For Nanoscale Imaging