Text this: Analysis of stability condition for LDPC codes and optimizing degree sequences over mixed channel