How NeRFs and 3D Gaussian Splatting are Reshaping SLAM: a Survey