Electronic structure and properties of 2- and 4-hydroxypyridines