The dynamics of photodissociation of HCN and DCN; theoretical predictions and experimental observations