A motor's rotational angle sensor based on fiber Bragg grating