Regiochemistry and substituent effects on pyrylogen and thiopyrylogen stability and electronic character