Federer loses world No.1 spot after Coric defeat