Real Madrid have sacked coach Julen Lopetegui after just 10 league matches in charge.