Prospects of using silicon photomultipliers for the astroparticle physics experiments EUSO and MAGIC