Prosecutors accuse N.Y. assemblyman of taking bribes