Structure and electronic properties of atomically-layered ultrathin nickelate films