N.Y. to install security cameras in subways