The implementation of real-time plasma electron density calculations on EAST