Energetics and structural relaxation of constitutional defects in CoAl and CoTi from first principles