Deign and performance analysis of FBG based systems for applications in optical communication and sensors