Influence of lattice vacancies on the structural, electronic, and cohesive properties of niobium and molybdenum borides from first-principles calculations