Second-order optical differentiator using mechanically-induced LPFG with a single π-shift