Interactions of 300-GeV protons with tungsten and chromium