Inter Milan sack Stefano Pioli after six months as head coach, three matches before the end of the Serie A season.