Real Madrid's Khedira out for up to six months