Constraining the top electroweak sector of the SMEFT through $Z$ associated top pair and single top production at the HL-LHC