On-chip optoelectronic feedback in a micropillar laser-detector assembly