Electrical detection and modulation of magnetism in a Dy-based ferroelectric single-molecule magnet