Location of a lone pair of electrons in a heterocyclic compound