Level densities and $γ$-strength functions in $^{148,149}$Sm