Matrix hodoscopes for the Oka (Protvino) and NA62 (SPS, CERN) experimental setups