Twin-core fiber sensor integrated in laser cavity