Optical bistability in plasmonic nanoparticles: Effect of size, shape and embedding medium