Automated Medical Coding on MIMIC-III and MIMIC-IV: A Critical Review and Replicability Study