Implantable Fiber Bragg Grating sensor for continuous heart activity monitoring: ex-vivo and in-vivo validation