Protective effects of total flavonoids from Alpinia officinarum rhizoma against ethanol-induced gastric ulcer in vivo and in vitro