Semiautomatic indirect titration of alkaline-earth ions with catalytic endpoint indication