Optimal filtering for partially measured polynomial system states