Large deviations for martingales with exponential condition