A Copernicus survey of Mg II emission in late-type stars