Molecular basis for the broad substrate selectivity of a peptide prenyltransferase