Femtosecond laser inscription of embedded gratings in transparent media