Sequential STIRAP-based control of the HCN→CNH isomerization