Man accused in Minnesota clinic shooting to get mental exam