Characterization of TLC 3D-NAND Flash Endurance through Machine Learning for LDPC Code Rate Optimization