Text this: Development and testing of a dual-frequency real-time hardware feedback system for the hard X-ray nanoprobe beamline of the SSRF