Optical model description of parity-nonconserving neutron resonances