Effect of the orientation of interplanetary shock on the geomagnetic sudden commencement