FBG-based smart bed system for healthcare applications