Rate-adaptive modulation and coding for optical fiber transmission systems