Random and channeled energy loss in thin germanium and silicon crystals for positive and negative 2-15-GeV/c pions, kaons, and protons