Theoretical investigation of the transverse optical force between a silicon nanowire and a substrate