Optimization of metal-clad waveguide sensors