Energy dependence of photonuclear effect and muon intensity under rock