Computational study on the stability of imidazol-2-ylidenes and imidazolin-2-ylidenes