Radiative lifetimes for excited states in doubly ionized elements (21 ≤ Z ≤ 30) of astrophysical interest