Optimization and performance analysis of a D-shaped polymer optical fiber SPR sensor for selective detection of cadmium ions