Digital twins for Industry 4.0 in the 6G era