Rare-earth nickelates RNiO3: thin films and heterostructures