Influence of refractive-index mismatch in high-resolution three-dimensional confocal microscopy