On some aspects of the asymptotic properties of Bayesian approaches in nonparametric and semiparametric models