Assessing heavy metal ion contamination through functionalized d-shaped optical fiber