Construction of optical needles and spot arrays using radiation pattern of collinear antenna array