Carlsbad selects new city attorney