Designing realised kernels to measure the ex-post variation of equity prices in the presence of noise