Method for preparing 2-bromo-4,5-dimethoxybenzoic acid