Electron beam profile instrument based on FBGs