The nonlinear filtering problem for the unbounded case