Saudi king replaces military chiefs in shake-up