Improving stability of resonance structure generation

- include the requirement for an existing lone electron pair for
N5dd-N5ts resonance