An approach to the mechanical behaviour of SiC/SiC and C/SiC ceramic matrix composites