3D-printed all-dielectric electromagnetic encoders with synchronous reading for measuring displacements and velocities