Wipe dalvick, cache, system,data and if you want internal storage. Then install what Rom do you want,it should work as long as it is for Nougat bootloader.
There is a better miui experience out there in terms of performance and battery life.it is called miui pro, it's Russian I think, it's...