Text this: HCF-RecNet: Handwritten Chemical Formula Recognition With Deep Learning and Rule-Based Correction