A New Approach to Optimal Filter Design for Nonlinear Systems