Sacked Catalan leader Carles Puigdemont accepts snap elections