Optical excitation of surface plasmon polariton and waveguide modes resonances on prismatic structures