Error Bounds and Singularity Degree in Semidefinite Programming