Optical processing of bacterial libraries for directed evolution