Optical losses characterization in channel waveguides through the photodeflection method