On measuring volatility of diffusion processes with high frequency data