Everton sign midfielder Dwight McNeil on a five-year contract in a deal worth about £20m from Burnley.