Rotational spectroscopy of molecular ions using diode lasers