Chemical and phase inhomogeneity in LaNiO3 electrodes prepared by chemical solution deposition