Critical parameters and optimization of a magnesium-selective liquid membrane electrode for application to human blood serum