Comparative study of dimer-vacancies and dimer-vacancy lines on Si(001) and Ge(001)