Luminosity function of [OII] emission-line galaxies in the MassiveBlack-II simulation