Determination of hydrochloric and phosphoric acid in etching baths