Hull City have agreed a loan with Everton for Oumar Niasse until the end of the season, when they will have the option to make the deal permanent for a fee of £10m.