Method of processing an optoelectronic device and optoelectronic device