Chemical nanolithography with electron beams