West Ham have sacked Nuno Espirito Santo after back-to-back defeats left them eighth in the Championship.