Protein secondary structure prediction using optimized scoring functions