Return-to-zero to or from NRZ (nonreturn-to-zero) codes