Effects of the ambient medium and structure parameter on the optical properties of tapered silicon nanowire