Pathwise solutions and multiplicative functionals in nonlinear filtering