Magnetoelectric coupling and spin-induced electrical polarization in metal–organic magnetic chains