Optimum design of a distributed Bragg-reflector laser with optical loss in the corrugated waveguide