Euclid: Forecasts from redshift-space distortions and the Alcock-Paczynski test with cosmic voids