Gravar-mail: Mode switching using optically induced long-period gratings: a theoretical analysis