Bimagnon studies in cuprates with resonant inelastic x-ray scattering at the O K edge. I. Assessment on La2CuO4 and comparison with the excitation at Cu L-3 and Cu K edges