Development of the kaon tagging system for the NA62 experiment at CERN