Localization of massless Dirac particles via spatial modulations of the Fermi velocity