A comparative study of Rayleigh-Taylor and Richtmyer-Meshkov instabilities in 2D and 3D in tantalum