Analysis of plasmonic subwavelength waveguide-coupled nanostub and its application in optical switching