Mesoscale surface patterning by ring-shaped lithography for single and array optical elements