Design and development of an optical fiber sensor for hydrogen detection