Merged CEPscan_inBrokenPhase_helper and plotPotential_inBrokenPhase_helper

also added the possibility for plotPotential_inBrokenPhase to deal with periodic solution analogous to the scanning code