Microcantilever charged-particle flux detector