Efficient simulation of coherence transfer pathway selection by phase cycling and pulsed field gradients in NMR