Structure effect on intrinsic piezoelectricity in septuple-atomic-layer MSi2N4 (M=Mo and W)