Localization of a dipolar Bose–Einstein condensate in a bichromatic optical lattice