General Methodology to Identify the Minimum Alphabet Size for Heteropolymer Design