A comparative first-principles study of the electronic, mechanical, defect and acoustic properties of Ti2AlC and Ti3AlC