Etch induced microwave losses in titanium nitride superconducting resonators