Combined local-density and dynamical mean field theory calculations for the compressed lanthanides Ce, Pr, and Nd