Some inequalities for p-variations of martingales