Miniaturization and Optimization of the Standard Spectrophotometric Analysis for Autonomous, Continuous and On-site Heavy Metal Detection in Water