Electroluminescence from organic semiconductors in patterned microcavities