Versatile integrated PMD emulation and compensation elements