ph analysis