Quantitative comparison of high resolution TEM images with image simulations