Sub-Riemannian problems on 3D Lie groups with applications to retinal image processing