A three-dimension tilt-meter based on fiber gratings