Liverpool have completed the signing of goalkeeper Simon Mignolet from Sunderland on a long-term contract.