What year did the caliphate's expansion in the west start?