Pan-cancer analysis of genomic scar patterns caused by homologous repair deficiency (HRD)