On moderate deviations for martingales