Russia has signed a deal to build two nuclear power plants in Nigeria, as Africa's largest economy seeks to end its energy crisis.