On compactness results of Lions–Peetre type for bilinear operators