Newcastle have completed the signing of France international right-back Mathieu Debuchy from Lille for an undisclosed fee.