The deposed Catalan leader Carles Puigdemont and 13 of his dismissed ministers have been ordered to appear in court to face charges over an independence drive that has rocked the world of Spanish politics.