Optimizing Information Transfer Through Chemical Channels in Molecular Communication