An explicit functional process solution to a stochastic partial differential equation with applications to nonlinear filtering