Man accused in acid attack to get competency exam