Solution deposition and heteroepitaxial crystallization of LaNiO3 electrodes for integrated ferroelectric devices