Design of front-end electronics based on a programmable transimpedance amplifier for an HIAF beam intensity detector