Optical magnetic and electric field sensors based on surface plasmon polariton resonant coupling