A core–shell molecularly imprinted polymer grafted onto a magnetic glassy carbon electrode as a selective sensor for the determination of metronidazole