First principles study of trirutile magnesium bismuth oxide: Ideal bandgap for photovoltaics, strain-mediated band-inversion and semiconductor-to-semimetal transition