Martínez, Fernández score goals to help NYCFC beat Revolution 2-1