Design methodology for all-optical bistable switches based on a plasmonic resonator sandwiched between dielectric waveguides