Bilinear estimates related to the KP equations