Speckle noise attenuation in optical coherence tomography by compounding images acquired at different positions of the sample