Three-way coupling of compositional flow and poromechanics in porous media