Supersymmetric M5-branes with H-field