Correlation between Chemical and Electronic Properties of Solution-Processed Nickel Oxide