Filtering of Discrete Time Bilinear Systems: a Polynomial Approach