Square wave voltammetry on boron-doped diamond electrodes for analytical determinations