An application-specific image processing array based on WSe2 transistors with electrically switchable logic functions | Synapse