Characterizations of operator-valued Hardy spaces and applications to harmonic analysis on quantum tori