Energy estimation of photons in nuclear emulsions