adding option to calculate both, one or the other of local c-axis misalignments