Functional Cramér–Rao bounds and Stein estimators in Sobolev spaces, for Brownian motion and Cox processes